﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ProjectSem40701.Util
{
    public class CheckActiveExam
    {
        public bool Is_Exist_Exam_Active()
        {
            bool ok = false;
            try
            {
                MainDataset.ExamTableAdapters.tbl_ExamTableAdapter dp = new MainDataset.ExamTableAdapters.tbl_ExamTableAdapter();
                ok = dp.Get_tbl_Exam_Select_All_Status_Active().Rows.Count > 0;
                return ok;
            }
            catch
            {
                return false;
            }
        }
    }
}
